<?php

Class Association

{
    private $IDAssociation;
    private $NomAssociation;
    private $AdresseAssociation;
    private $MailAssociation;
    private $TelephoneAssociation;
    private $TypeAssociation;
    public function __construct($id,$nom,$adresse,$mail,$telephone,$type)
    {
        $this-> IDAssociation = $id;
        $this-> NomAssociation = $nom;
        $this-> AdresseAssociation = $adresse;
        $this-> MailAssociation = $mail;
        $this-> TelephoneAssociation = $telephone;
        $this-> TypeAssociation = $type;
    }
    
    public function __destruct()
    {}
    public function __get($attribut)
	{
		switch ($attribut) {
			case'IdAssociation': {return $this->IdAssociation;break;}
			case'NomAssociation':{return $this->NomAssociation;break;}
			case'AdresseAssociation':{return $this->AdresseAssociation;break;}
			case'MailAssociation':{return $this->MailAssociation;break;}
			case'TelephoneAssociation':{return $this->TelephoneAssociation;break;}
			case'TypeAssocation': {return $this->TypeAssociation;break;}
	
                                   }
        }
        public function setIDAssociation($IDAssociation) {
            $this->IDAssociation = $IDAssociation;
        }

        public function setNomAssociation($NomAssociation) {
            $this->NomAssociation = $NomAssociation;
        }

        public function setAdresseAssociation($AdresseAssociation) {
            $this->AdresseAssociation = $AdresseAssociation;
        }

        public function setMailAssociation($MailAssociation) {
            $this->MailAssociation = $MailAssociation;
        }

        public function setTelephoneAssociation($TelephoneAssociation) {
            $this->TelephoneAssociation = $TelephoneAssociation;
        }

        public function setTypeAssociation($TypeAssociation) {
            $this->TypeAssociation = $TypeAssociation;
        }


        
}
?>
